package com.pan.download5.factory.impl;

import com.pan.crawler.Page;
import com.pan.crawler.auto2.Auto2CrawlerPage;
import com.pan.download5.factory.PageFactory;
import com.pan.download5.parse.entity.auto2.Auto2InfoPage;

public class Auto2PageFactory implements PageFactory {
    private Auto2InfoPage pageInfo;

    public Auto2PageFactory(Auto2InfoPage pageInfo) {
        this.pageInfo = pageInfo;
    }

    @Override
    public Page createPage() {
        return new Auto2CrawlerPage(pageInfo);
    }
}
